﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["id"] != null)
        {
            lbShow.Text = "当前用户：" + Session["id"];
        }
        else
        {
            lbShow.Text = "当前状态：未登录";
        }

    }
    protected void btnBack_Click(object sender, EventArgs e)
    {
        Session.RemoveAll();
        Response.Write("<script>alert('注销成功 ');window.location.href='login.aspx';</script>");
    }
}
